package cn.geminis.crypto.core.finder;

import cn.geminis.crypto.core.x509.X509Certificate;
import org.bouncycastle.cms.SignerId;

/**
 * @author puddi
 */
@FunctionalInterface
public interface CertificateFinder {

    /**
     * 查找证书
     *
     * @param signerId 证书标识
     * @return 证书
     */
    X509Certificate findCert(SignerId signerId);
}
